<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>20_定位</title>
    <link rel="stylesheet" href="./css/basic.css">
    <style>
        .container {
            width: 300px;
            height: 500px;
            background-color: pink;
            position: relative;
        }
        
        .box1 {
            width: 50px;
            height: 50px;
            justify-content: space-around;
            background-color: brown;
            position: absolute;
            border-radius: 50%
        }
        
        .box2 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            transform: translate(-50%, 0)
        }
        
        .box3 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            right: 0;
        }
        
        .box4 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            transform: translate(0, -50%);
        }
        
        .box5 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            bottom: 0
        }
        
        .box6 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            bottom: 0;
            right: 0;
        }
        
        .box7 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translate(-50%, 0)
        }
        
        .box8 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%)
        }
        
        .box9 {
            width: 50px;
            height: 50px;
            background-color: brown;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            right: 0;
            transform: translate(0, -50%);
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4"></div>
        <div class="box5"></div>
        <div class="box6"></div>
        <div class="box7"></div>
        <div class="box8"></div>
        <div class="box9"></div>
    </div>
</body>

</html>